from django.db import models
from django.contrib.auth.models import User

class Administrator(models.Model):
    user = models.OneToOneField(User, on_delete=models.CASCADE)
    photo = models.URLField(max_length=256, blank=True)
    username = models.CharField(max_length=100, null=True)
    phone_number = models.CharField(max_length=100, blank=True)
    professional_title = models.CharField(max_length=100, blank=True)
    creation_time = models.CharField(max_length=100, blank=True)
    update_time = models.CharField(max_length=100, blank=True)
    verification_code = models.CharField(max_length=50, blank=True)

    def __str__(self):
        return str(self.user)

